Microstructure and Superior Corrosion Resistance of an In-Situ Synthesized NiTi-Based Intermetallic Coating via Laser Melting Deposition

A nickel–titanium (NiTi)-based intermetallic coating was in-situ synthesized on a Ti–6Al–4V (TC4) substrate via laser melting deposition (LMD) using Ni–20Cr and TC4 powders. Scanning electron microscopy, X-ray diffraction, a digital microhardness tester and an electrochemical analyzer were used to evaluate the microstructure, Vicker’s microhardness and electrochemical corrosion resistance of the intermetallic coating. Results indicate that the microstructure of the intermetallic coating is composed of NiTi2, NiTi and Ni3Ti. The measured microhardness achieved is as high as ~850 HV0.2, ~2.5 times larger than that of the TC4 alloy, which can be attributed to the solid solution strengthening of Al and Cr, dispersion strengthening of the intermetallic compounds, and grain refinement strengthening from the rapid cooling of LMD. During the electrochemical corrosion of 3.5% NaCl solution, a large amount of Ti ions were released from the intermetallic coating surface and reacted with Cl− ions to form [TiCl6]2 with an increase in corrosion voltage. In further hydrolysis reactions, TiO2 formation occurred when the ratio of [TiCl6]2− reached a critical value. The in-situ synthesized intermetallic coating can achieve a superior corrosion resistance compared to that of the TC4 alloy.


Introduction
Nickel-titanium (NiTi) alloys are widely used in aerospace, electric, chemical, and biological medicine applications due to their shape memory effect, high strength, good wear resistance, pseudo-elasticity and biocompatibility [1][2][3][4]. In particular, NiTi alloys exhibit excellent corrosion resistance because of the formation of a stable and dense titanium oxide passivation film on their surface to prevent further corrosion [5][6][7]. However, the passivation film is susceptible to damage and even being detached from NiTi alloys in a harsh corrosion environment (e.g., highly acidified chloride solutions) [8][9][10][11].
NiTi-based intermetallic coatings have been developed to improve the corrosion resistance of NiTi alloys and reduce the material costs by decreasing the usage of expensive NiTi alloys. For instance, Zhou et al. prepared NiTi-based intermetallic coatings on a Cu substrate by low pressure plasma spraying (LPPS) [12]. They found that the coatings were composed of NiTi, NiTi 2 , Ni 3 Ti, and Ti, and possessed higher anti-cavitation performance than coatings of pure Ti. Bitzer et al. prepared NiTi-based intermetallic coatings by LPPS on a 42CrMo 4 steel and found that the NiTi-based intermetallic coatings were composed of NiTi, oxygen-containing NiTi 2 and Ni 4 Ti 3 [13]. Such coatings showed significantly improved cavitation resistance compared with the UTP 730 stainless steel. However, defects, such as porosity and microcracks may deteriorate the corrosion resistance of LPPS-produced NiTi-based intermetallic coatings [14].
Laser surface modification techniques have been demonstrated to reduce the defects produced in NiTi-based coatings. Hiraga et al. produced dense NiTi-based intermetallic coatings using laser-plasma spraying hybrid cladding [14,15]. They found that the NiTi and Ni 3 Ti intermetallic compounds formed in the Ni 50 Ti 50 coating, while NiTi, Ni 3 Ti and NiTi 2 appeared in the Ni 60 Ti 40 coating. As a result, the corrosion resistance of the NiTi-based intermetallic coatings was~40 times higher than that of the TC4 alloy. Cui et al. [16] studied the corrosion resistance of NiTi-based intermetallic coatings produced by laser remelting and laser gas nitriding. The corrosion resistance of the coatings were enhanced by the formation of a TiN phase on the coating surface. Moreover, Hu et al. [10] added TaC particles in NiTi/NiTi 2 composite coatings prepared by laser cladding for the enhancement of the corrosion resistance of the coatings. The TaC particles contributed to the formation of SiO 2 and Ta 2 O 5 thereby hindering the further corrosion of the composite coatings.
In this paper, we report a laser melting deposition (LMD) method of preparing the in-situ synthesized NiTi-based intermetallic coatings for surface modification. We consider LMD as an innovative and effective process for producing high-performance NiTi-based intermetallic coatings. LMD, characterized by a rapid cooling rate up to 10 6 -10 7 K/s, is a new and promising laser surface treatment technique for strengthening pure metals, alloys, and metal matrix composites [17,18]; it has been shown to be effective in improving the mechanical and wear properties of a number of metals and alloys because of its capability to impart desirable refined microstructures and reinforced phases through rapid solidification and chemical reactions. Another advantage for laser deposition would be the achievement of very complex geometries and customized designs [19]. Although some published works that did report that fine microstructure and superior wear resistance of NiTi-based intermetallic alloy coatings in-situ synthesized through LMD can be achieved [1,20], surprisingly few have reported on the electrochemical corrosion behavior of the in-situ synthesized NiTi-based intermetallic coatings.
In this work, Ni-20Cr and TC4 powders were utilized and mixed as the cladding materials to reduce the cost of raw powders. The microstructure and mechanics of a NiTi-based intermetallic coating in-situ synthesized by optimized LMD process were characterized using scanning electron microscopy, X-ray diffraction, and digital microhardness tester. Furthermore, for the first time, the corrosion behavior of the intermetallic coating was evaluated by electrochemical corrosion and immersion tests, and the underlying mechanism of the enhanced corrosion resistance of the in-situ synthesized NiTi-based coating was discussed.

Materials
A TC4 alloy with dimensions of 100 × 60 × 10 mm 3 was used as the substrate for the coating. The chemical composition of the TC4 alloy is listed in Table 1. Ni-20Cr (wt%) and TC4 powders with a weight ratio of 4:1 were mechanically mixed at a speed of 300 rpm for 1 h in an alcohol atmosphere in a planetary ball mill (TJ-2L, procured from a company in Tianjin, China, TECHIN Ltd.). The powder-to-ball mass ratio was set as 1:3. The mixed powder was dried at 373 K for 2 h and then used as the cladding material.

LMD Coating Process
Prior to LMD, the surface of the TC4 substrate was polished and cleaned with alcohol. The LMD process was carried out using an IPG fiber laser with a wavelength of 1070 nm. A shielding of argon gas was used to protect the molten pool of LMD and deliver the mixed powders into the molten pool. A schematic configuration of LMD is depicted in Figure 1. The processing parameters were optimized to obtain the crack-free NiTi-based intermetallic coating by LMD: the laser power of 1 kW, the laser scanning speed of 600 mm/min, powder feeding rate of 0.8 g/min, the spot diameter of 2 mm, and overlapping rate of 50%. The height and width of NiTi-based intermetallic coating were~1 mm and~7 mm, respectively.

LMD Coating Process
Prior to LMD, the surface of the TC4 substrate was polished and cleaned with alcohol. The LMD process was carried out using an IPG fiber laser with a wavelength of 1070 nm. A shielding of argon gas was used to protect the molten pool of LMD and deliver the mixed powders into the molten pool. A schematic configuration of LMD is depicted in Figure 1. The processing parameters were optimized to obtain the crack-free NiTi-based intermetallic coating by LMD: the laser power of 1 kW, the laser scanning speed of 600 mm/min, powder feeding rate of 0.8 g/min, the spot diameter of 2 mm, and overlapping rate of 50%. The height and width of NiTi-based intermetallic coating were ~1 mm and ~7 mm, respectively. After LMD, all the samples were cut from the substrate, polished, and then etched by Kroll's solution (10 mL HF, 15 mL HNO3, and 75 mL H2O). The microstructure of the NiTibased intermetallic coating prepared by LMD was examined by field emission scanning electron microscopy (SEM, ZEISS Sigma 300) equipped with an X-ray energy-dispersive spectrometer (EDS). The phases were investigated by a D/MAX-2500 X-ray diffraction (XRD, Cu Kα at 40 kV and 40 mA, scanning rate of 0.02°/s). The microhardness of the intermetallic coating was tested using a HV-1000 Vickers digital microhardness tester with a load of 1.96 N and a dwelling time of 10 s. The reported microhardness was averaged from three samples for each condition.
The electrochemical corrosion resistance of the NiTi-based intermetallic coating was measured by a CHI604E electrochemical analyzer (Chenhua, Shanghai, China) in a 3.5 wt% NaCl solution. A standard three-electrode cell was composed of a working electrode made from a composite specimen with an exposed area of 1 cm 2 , a platinum counter electrode, and a saturated calomel reference electrode. All the samples were immersed into the 3.5 wt% NaCl solution at room temperature for 1 h to stabilize the open circuit potential (OCP). Potentiodynamic polarization scanning was varied from −1.5 V to 4.0 V at a sweep rate of 5 mV/s. Electrochemical impedance spectroscopy (EIS) testing was performed at the OCP potentionstatically by scanning a frequency range from 10 −2~1 0 5 Hz with a voltage perturbation amplitude of 10 mV. The corresponding Nyquist and Bode plots were fitted by impedance spectrum data using Zsimpwin software. All potentials were measured at least three times.
Prior to immersion testing, the samples were ground with waterproof silicon carbide papers up to 2000 grits under running water, then cleaned in acetone, ethanol for 30 min using ultrasound, and finally dried at room temperature. The static immersion testing was After LMD, all the samples were cut from the substrate, polished, and then etched by Kroll's solution (10 mL HF, 15 mL HNO 3 , and 75 mL H 2 O). The microstructure of the NiTibased intermetallic coating prepared by LMD was examined by field emission scanning electron microscopy (SEM, ZEISS Sigma 300) equipped with an X-ray energy-dispersive spectrometer (EDS). The phases were investigated by a D/MAX-2500 X-ray diffraction (XRD, Cu Kα at 40 kV and 40 mA, scanning rate of 0.02 • /s). The microhardness of the intermetallic coating was tested using a HV-1000 Vickers digital microhardness tester with a load of 1.96 N and a dwelling time of 10 s. The reported microhardness was averaged from three samples for each condition.
The electrochemical corrosion resistance of the NiTi-based intermetallic coating was measured by a CHI604E electrochemical analyzer (Chenhua, Shanghai, China) in a 3.5 wt% NaCl solution. A standard three-electrode cell was composed of a working electrode made from a composite specimen with an exposed area of 1 cm 2 , a platinum counter electrode, and a saturated calomel reference electrode. All the samples were immersed into the 3.5 wt% NaCl solution at room temperature for 1 h to stabilize the open circuit potential (OCP). Potentiodynamic polarization scanning was varied from −1.5 V to 4.0 V at a sweep rate of 5 mV/s. Electrochemical impedance spectroscopy (EIS) testing was performed at the OCP potentionstatically by scanning a frequency range from 10 −2~1 0 5 Hz with a voltage perturbation amplitude of 10 mV. The corresponding Nyquist and Bode plots were fitted by impedance spectrum data using Zsimpwin software. All potentials were measured at least three times.
Prior to immersion testing, the samples were ground with waterproof silicon carbide papers up to 2000 grits under running water, then cleaned in acetone, ethanol for 30 min using ultrasound, and finally dried at room temperature. The static immersion testing was conducted using 3.5% NaCl solution for 7 days at room temperature. Three samples were tested for each group. Figure 2a shows the XRD pattern of the NiTi-based intermetallic coating in-situ synthesized by LMD. The results indicate that it consists of a dominant NiTi 2 phase with a face-centered cubic (fcc) structure, while the other two intermetallic phases of NiTi and Ni 3 Ti have primitive hexagonal crystal structures (Figure 2a). The grain sizes of each phase can be determined from the Bragg peak width at half of the maximum intensity using the Scherrer formula [21]:

Microstructure of the NiTi-Based Intermetallic Coating
where D is the grain size, λ is the wavelength of the X-ray radiation, B is the peak width at half of the maximum intensity, and θ is the Bragg diffraction angle. The grain sizes of NiTi, NiTi 2 and Ni 3 Ti were calculated as~30 nm,~17 nm and~25 nm, respectively. According to the previous works [22,23], the volume fractions of the NiTi, NiTi 2 and Ni 3 Ti phases can be calculated as~20%,~52% and~28%, respectively, (as shown in Figure 2b). conducted using 3.5% NaCl solution for 7 days at room temperature. Three samples were tested for each group. Figure 2a shows the XRD pattern of the NiTi-based intermetallic coating in-situ synthesized by LMD. The results indicate that it consists of a dominant NiTi2 phase with a face-centered cubic (fcc) structure, while the other two intermetallic phases of NiTi and Ni3Ti have primitive hexagonal crystal structures ( Figure 2a). The grain sizes of each phase can be determined from the Bragg peak width at half of the maximum intensity using the Scherrer formula [21]:

Microstructure of the NiTi-Based Intermetallic Coating
where D is the grain size, λ is the wavelength of the X-ray radiation, B is the peak width at half of the maximum intensity, and θ is the Bragg diffraction angle. The grain sizes of NiTi, NiTi2 and Ni3Ti were calculated as ~30 nm, ~17 nm and ~25 nm, respectively. According to the previous works [22,23], the volume fractions of the NiTi, NiTi2 and Ni3Ti phases can be calculated as ~20%, ~52% and ~28%, respectively, (as shown in Figure 2b).  Figure 3 shows the microstructure of the NiTi-based intermetallic coating in-situ synthesized by LMD. As shown in Figure 3a, the presence of three distinct regions (as marked by I, II and III) can be observed from the top to the bottom of the coating. The petal-like dendritic microstructure is formed in region I, with a grain size of a maximum of ~20 µ m in length (marked as A). Based on the XRD results ( Figure 2a) and EDS analysis (Table 2), the petal-like dendrites can be identified as NiTi, while the intermetallic (marked B) located between the petal-like dendrites is identified as Ni3Ti. Moreover, region II is mainly composed of equiaxial or columnar dendrites (marked as C and D), which can be identified as NiTi2. The length of the oriented dendrites is measured as ~80 µ m and the main stems are angled ~30° toward the normal direction of the coating-substrate interface (marked as D).   (Table 2), the petal-like dendrites can be identified as NiTi, while the intermetallic (marked B) located between the petal-like dendrites is identified as Ni 3 Ti. Moreover, region II is mainly composed of equiaxial or columnar dendrites (marked as C and D), which can be identified as NiTi 2 . The length of the oriented dendrites is measured as~80 µm and the main stems are angled~30 • toward the normal direction of the coating-substrate interface (marked as D).
Generally, thermocapillarity caused the violent stirring and convection in the molten pool [24], thus, increasing the longer lifespan in the center of the molten pool than that at the bottom of the molten pool; this, in turn, resulted in the non-uniform distribution of solutes and the temperature in front of the solid/liquid interface. Therefore, the growth direction of dendrites can deviate from the normal direction of the coating/substrate interface. However, coarse dendritic arms can be formed because of a relatively slow solidification speed at the bottom of the molten pool [25]. It is seen that large secondary dendritic arms appear at the bottom of region II (marked E), and the lateral growths of dendrites occur near the coating/substrate interface (marked F); these phenomena are attributed to a relatively larger specific surface area of the smaller dendritic arms, facilitating the growths of larger dendritic arms by way of consuming the smaller dendritic arms to reduce the total surface energy. The longer time the dendrites coarsening takes, the larger spacing the dendritic arms possess. Hence, an increase in the distance from the coating/substrate interface can decrease the spacing of secondary dendritic arms.  Generally, thermocapillarity caused the violent stirring and convection in the molten pool [24], thus, increasing the longer lifespan in the center of the molten pool than that at the bottom of the molten pool; this, in turn, resulted in the non-uniform distribution of solutes and the temperature in front of the solid/liquid interface. Therefore, the growth direction of dendrites can deviate from the normal direction of the coating/substrate interface. However, coarse dendritic arms can be formed because of a relatively slow solidification speed at the bottom of the molten pool [25]. It is seen that large secondary dendritic arms appear at the bottom of region II (marked E), and the lateral growths of dendrites occur near the coating/substrate interface (marked F); these phenomena are attributed to a relatively larger specific surface area of the smaller dendritic arms, facilitating the growths of larger dendritic arms by way of consuming the smaller dendritic arms to reduce the total surface energy. The longer time the dendrites coarsening takes, the  In addition, planar growths are seen at region III; such features indicate that the metallurgical bonding is generated at the coating/substrate interface. According to rapid solidification theory, the characteristics of the microstructure growths are related to the ratio G/R, where G is the temperature gradient and R is the solidification front rate. The R value is related to the laser scanning speed V S directly and can be described as follows [26,27]: where θ is the angle between V S and R, h is the cladding height, and A is the spot diameter, as schematized in Figure 4. Prominently, R starts off with zero at the bottom of the molten pool but increases rapidly to the maximum value. However, G starts off with the largest value at the bottom of the molten pool while decreasing gradually toward the surface of the molten pool. Therefore, the G/R value approaches an infinite value at the bottom of the molten pool just corresponding to the planar growths. With the increasing distance far away from the coating/substrate interface, the G/R value decreases, inferring the presence of a constitutional supercooling ahead of the solidification front. Hence, the planar solid/liquid interface becomes unstable, resulting in the formation of dendrites (Figure 3d).
G/R, where G is the temperature gradient and R is the solidification front rate. The R value is related to the laser scanning speed VS directly and can be described as follows [26,27]: Where θ is the angle between VS and R, h is the cladding height, and A is the spot diameter, as schematized in Figure 4. Prominently, R starts off with zero at the bottom of the molten pool but increases rapidly to the maximum value. However, G starts off with the largest value at the bottom of the molten pool while decreasing gradually toward the surface of the molten pool. Therefore, the G/R value approaches an infinite value at the bottom of the molten pool just corresponding to the planar growths. With the increasing distance far away from the coating/substrate interface, the G/R value decreases, inferring the presence of a constitutional supercooling ahead of the solidification front. Hence, the planar solid/liquid interface becomes unstable, resulting in the formation of dendrites ( Figure  3d). During LMD, there was a rapid phase transformation from the liquid phase to β-Ti for the cladding powders. According to the phase diagram of Ni-Ti alloy ( Figure 5) [28], when the thermal diffusion continued, Ni3Ti and NiTi formed with a eutectic reaction occurring in the liquid phase at a temperature of 1583 K.

L → NiTi + Ni 3 Ti
(3) As the atom ratio of Ni to Ti is 77.99:86.33 (less than 1:1) in this work, a peritectic reaction between the liquid phase L ′ and the formed NiTi in the titanium-rich side can proceed, resulting in the formation of another intermetallic compound NiTi2 at a temperature of 1257 K [28-30]:  As the atom ratio of Ni to Ti is 77.99:86.33 (less than 1:1) in this work, a peritectic reaction between the liquid phase L and the formed NiTi in the titanium-rich side can proceed, resulting in the formation of another intermetallic compound NiTi 2 at a temperature of 1257 K [28][29][30]: For Ni-Ti binary system at different temperatures, NiTi (formation enthalpy ∆H = −67 kJ/mol), NiTi 2 (∆H = −83 kJ/mol), Ni 3 Ti (∆H = −140 kJ/mol) intermetallic compounds can be formed with exothermic reactions occurring [31][32][33]. Ni 3 Ti can be formed firstly during LMD because of its minimum formation enthalpy. According to Equation (4), when cooling proceeds, NiTi 2 can be produced from the interaction between the formed NiTi and the residual liquid phase L . This is the reason to explain the presence of dominant NiTi 2 phase constituent in the intermetallic coating ( Figure 2).
The formation mechanism of the petal-like dendrites can be explained as follows. The intermetallic compounds (NiTi and Ni 3 Ti) can grow rapidly at the initial stage of rapid solidification due to constitutional supercooling. Afterward, the Ni 3 Ti grows rapidly into the coarse dendritic branch and the Ti atoms diffuse into the liquid phase. The supersaturated Ni-based phase containing rich Ti atoms is precipitated, as the subsequent phase transforms into a NiTi intermetallic and grows on the surface of the primary Ni 3 Ti intermetallic. Consequently, the duplex phase nucleation sites with the interface of the intergrowth are formed, supplying the atoms for the neighboring phase to grow harmoniously, which depends on the diffusivity of the solute atoms, such as Ni, Cr and Ti to diffuse continually on the interface of Ni 3 Ti and NiTi intermetallics. Moreover, the eutectic Ni 3 Ti and NiTi phases are characterized by the non-facet growth of the unshaped interface. As such, the eutectics are formed by the intergrowth of Ni 3 Ti and NiTi, both of which present different crystal structures (Figure 3b). Therefore, the petal-like eutectic intermetallics grow in terms of the intergrowth model of layer and slice during LMD. Figure 6 shows the microhardness of the NiTi-based intermetallic coating in-situ synthesized by LMD. It was observed that the average microhardness of the NiTi-based intermetallic coating is~850 HV 0.2 , which is~2.5 times that of the substrate (~350 HV 0.2 ); this can be attributed to the formation of NiTi 2 , dispersion strengthening, solid solution strengthening, and grain refinement strengthening. First, the very important factor is the presence of the dominant NiTi 2 phase in a face-centered cubic (fcc) structure with high hardness (HV700) and strong atomic bonds, thereby, increasing the overall hardness of NiTi-based intermetallic coating. In addition, these intermetallic compounds, such as NiTi and Ni 3 Ti (Figure 2) derived from the in-situ reactions of Ni and Ti atoms during LMD of Ni-20Cr and TC4 powders, are dispersedly distributed in the NiTi-based intermetallic coating, creating the dispersion strengthening effect. Moreover, the diffusion of a large number of alloying elements, such as Al and Cr into the NiTi, NiTi2 and Ni3Ti, results in their lattice distortions and solid solution strengthening. Finally, the formation of finegrained dendrites in the intermetallic coating due to rapid solidification is essential to increase the overall hardness as well. Figure 7 shows the anodic polarization curves of the NiTi-based intermetallic coating and Ti6Al4V alloy in 3.5% NaCl solution at room temperature. A distinct passivation behavior can be observed between the intermetallic coating and TC4 alloy, and the passivation region of the TC4 alloy is significantly larger than that of the NiTi-based intermetallic coating. The presence of a stable passivation platform for the TC4 alloy initiates from the corrosion voltage reaching around −0.3 V. However, the stable passivation of the intermetallic coating is formed at a corrosion voltage beyond 3 V, and a successive fluctuation of the curve in the range of −0.3 V to 3 V can be observed. This fluctuation can be attributed to the formation of different passivation films on the intermetallic coating surface, which is derived from different distributions of the intermetallic phases, such as NiTi 2 , NiTi and Ni 3 Ti. As a result, the polarization curve is changed from a passivation state to an active state, resulting in the instability of the passivation platform [34].

Electrochemical Corrosion of the NiTi-Based Intermetallic Coating
1 Figure 6. Microhardness of the NiTi-based intermetallic coating. HAZ represents heat affected zone. The corrosion potential E corr , corrosion current density I corr , and passivation current density I p are the important parameters to evaluate the corrosion resistance of materials, as shown in Table 3. The E corr value of the NiTi-based intermetallic coating is higher than that of the TC4 alloy, indicating much better stability of the passivation film formed in the coating [35,36]. The intermetallic coating obtains the I corr value of 1.977 × 10 −7 A/cm 2 , which is slightly smaller than that of the TC4 alloy (2.068 × 10 −7 A/cm 2 ). A lower I corr indicates a smaller corrosion rate of the passivation film and better corrosion resistance [37,38]. In addition, when the corrosion voltage is less than 1 V, the I p value of the intermetallic coating is smaller than that of the TC4 alloy. A larger I p results in the faster dissolution of the passivation film. Therefore, the intermetallic coating is beneficial for improving the corrosion resistance of the TC4 alloy substrate. Table 3. Corrosion parameters of the intermetallic coating and TC4 alloy in Figure 7.

Sample E corr (V) I corr (A/cm 2 ) I p (A/cm 2 )
Immiscible coating −0.854 1.977 × 10 −7 −6.2 ± 0.01 TC4 alloy −0.943 2.068 × 10 −7 −5.8 ± 0.01 To further study the corrosion characteristics of the intermetallic coating and TC4 alloy, electrochemical impedance spectroscopy (EIS) was measured in a 3.5% NaCl solution. The Nyquist results of EIS are illustrated in Figure 8a. It is seen that a similar semicircle capacitive impedance loop exists in the Nyquist curves of both the intermetallic coating and TC4 alloy. However, the radii of the capacitive impedance loop of the intermetallic coating are larger than that of the TC4 alloy. The larger the radius of the capacitive impedance loop indicates the higher corrosion resistance [39,40].  The phase angles of the intermetallic coating and TC4 alloy increase, and the phase angle of the intermetallic coating (~90 • ) is slightly higher than that of TC4 alloy, indicating a typical capacitance behavior. The greater angle values of the coating indicate its better corrosion resistance, which is consistent with the results of polarization curves (Figure 7). This can be confirmed by the equivalent circuits shown in Figure 8d. To obtain the optimal fitting results, the equivalent circuits chosen χ 2 (chi-squared) must be in the range of 10 −4 -10 −3 and the results are listed in Table 4. As shown in Figure 8d, R s can be regarded as the solution resistance, R t is the resistance of the passivation film on the TC4 alloy surface during electrochemical corrosion, and R ct is defined as the charge transfer resistance. The values of R s and R t of the intermetallic coating are smaller than those of the TC4 alloy, while the R ct value of the intermetallic coating is much larger than that of the TC4 alloy. The higher R ct indicates the higher charge transfer resistance and resultant better corrosion resistance. The equivalent circuit of the intermetallic coating is mainly composed of the double layer capacitance and constant phase angle. This indicates that double layer capacitance C dl consists of the NaCl solution and coating, and the constant phase angle (CPE) is composed of the coating and TC4 substrate. Generally, CPE is defined as Z CPE = [Z 0 (jw) n ] −1 , where Z 0 is the constant of CPE, j 2 = −1 is imaginary, w is the angular frequency (w = 2πf), and n is the index of CPE (−1 ≤ n ≤ 1) [41][42][43]. As shown in Table 4, the n value of the intermetallic coating (0.8628) is slightly greater than that of the TC4 alloy (0.8548), indicating that the passivation film on the intermetallic coating is denser than that on the TC4 alloy. Furthermore, the χ 2 (chi-squared) values of the intermetallic coating and the TC4 alloy are all in the order of~10 −4 , showing a good fitting result.
During electrochemical corrosion, the different concentrations of Cl − ions agglomerate together on the surface of the intermetallic coating to replace the internal O ions, resulting in pitting. The schematic of the pitting formation process is illustrated in Figure 9. The corrosion current density increases quickly following the pitting process. With an increase in the corrosion voltage, the passivation platform of the intermetallic coating is punctured and a large amount of Ti ions are released to react with Cl − ions and form [TiCl 6 ] 2− . When the corrosion voltage is increased to~3 V, [TiCl 6 ] 2− reaches a certain critical value in the solution, and hereby, TiO 2 is produced from the hydrolysis reaction to protect the intermetallic coating from further corrosion [5,44]. Moreover, slight pitting can be found on the surface of the intermetallic coating (Figure 10a), while it becomes serious on the surface of the TC4 alloy (Figure 10b). This confirms that the intermetallic coating has superior corrosion resistance than the TC4 alloy during the electrochemical corrosion of 3.5% NaCl solution.
The intermetallic coating and TC4 alloy were immersed into the 3.5 wt% NaCl solution for 7 days to validate the results of polarization curves and EIS. Figure 11 shows the surface morphology of the intermetallic coating and TC4 alloy after the immersion testing. The surface of the intermetallic coating is relatively smooth and only slight pitting can be observed on the surface of the intermetallic coating (Figure 11a). Comparatively, the sizes and amounts of the pits on the TC4 surface are much larger than those on the surface of the intermetallic coating (Figure 11b). Therefore, the immersion results also demonstrate better corrosion resistance for the intermetallic coating than that of the TC4 alloy, which is in good agreement with the results of polarization curves and EIS.
[TiCl6] 2− . When the corrosion voltage is increased to ~3 V, [TiCl6] 2− reaches a certain critical value in the solution, and hereby, TiO2 is produced from the hydrolysis reaction to protect the intermetallic coating from further corrosion [5,44]. Moreover, slight pitting can be found on the surface of the intermetallic coating (Figure 10a), while it becomes serious on the surface of the TC4 alloy (Figure 10b). This confirms that the intermetallic coating has superior corrosion resistance than the TC4 alloy during the electrochemical corrosion of 3.5% NaCl solution.  The intermetallic coating and TC4 alloy were immersed into the 3.5 wt% NaCl solution for 7 days to validate the results of polarization curves and EIS. Figure 11 shows the surface morphology of the intermetallic coating and TC4 alloy after the immersion testing. The surface of the intermetallic coating is relatively smooth and only slight pitting can be observed on the surface of the intermetallic coating (Figure 11a). Comparatively, the sizes and amounts of the pits on the TC4 surface are much larger than those on the surface of the intermetallic coating (Figure 11b). Therefore, the immersion results also demonstrate better corrosion resistance for the intermetallic coating than that of the TC4 alloy, which is in good agreement with the results of polarization curves and EIS.

Conclusions
This work investigates the microstructure, mechanical properties, and electrochemical corrosion resistance of a NiTi-based intermetallic coating in-situ synthesized by LMD. The main findings are presented as follows.
(1) The NiTi-based intermetallic coating was in-situ synthesized on the TC4 substrate by LMD using a mixed powder of Ni-20Cr and TC4. The phases of the coating are composed of the intermetallic compounds of NiTi2, NiTi, and Ni3Ti, and their volume fractions are ~52%, ~20% and ~28%, respectively. (2) The microhardness of the intermetallic coating is ~850 HV0.2, which is ~2.5 times larger than that of the TC4 alloy. The high microhardness can be attributed to the solid solution strengthening of Al and Cr, dispersion strengthening of the intermetallic compounds, and grain refinement strengthening from the rapid solidification.

Conclusions
This work investigates the microstructure, mechanical properties, and electrochemical corrosion resistance of a NiTi-based intermetallic coating in-situ synthesized by LMD. The main findings are presented as follows.
(1) The NiTi-based intermetallic coating was in-situ synthesized on the TC4 substrate by LMD using a mixed powder of Ni-20Cr and TC4. The phases of the coating are composed of the intermetallic compounds of NiTi 2 , NiTi, and Ni 3 Ti, and their volume fractions are~52%,~20% and~28%, respectively. (2) The microhardness of the intermetallic coating is~850 HV 0.2 , which is~2.5 times larger than that of the TC4 alloy. The high microhardness can be attributed to the solid solution strengthening of Al and Cr, dispersion strengthening of the intermetallic compounds, and grain refinement strengthening from the rapid solidification. (3) The intermetallic coating exhibits better corrosion resistance than the TC4 alloy. With the increase in the corrosion voltage, a large amount of Ti ions react with the Cl − ions to form [TiCl 6 ] 2− in the solution. When [TiCl 6 ] 2− reaches a certain critical value, TiO 2 is formed by hydrolysis reaction to protect the intermetallic coating from further corrosion. Slight pitting appears on the coating surface, while large pits can be observed on the TC4 surface.